<?php $this->header(); ?>
<div class="wrap">
    <div class="nav">
        <ul class="cc">
            <li class="current"><a href="/?g=Admin&m=User&a=node">节点列表</a></li>
        </ul>
    </div>
    <div class="mb10"><a class="btn" href="/?g=Admin&m=User&a=addNode" title="添加节点" role="button"><span class="add"></span>添加节点</a></div>
    <div class="J_tabs_contents">

        <div>
            <?php foreach ($list as $key => $value) : ?>
                <?php foreach ($value as $_key => $_value) : ?>
                    <div class="h_a">
                        <?php echo $_value['title']; ?>
                        <a href="<?php echo "/?g=Admin&m=User&a=addNode&pid={$_value['id']}"; ?>" style="font-weight: normal;">[添加下级节点]</a>
                        <a href="<?php echo "/?g=Admin&m=User&a=editNode&id={$_value['id']}"; ?>" style="font-weight: normal;">[编辑]</a>
                        <a href="<?php echo "/?g=Admin&m=User&a=deleteNode&id={$_value['id']}"; ?>" style="font-weight: normal;">[删除]</a>
                    </div>
                    <div class="table_full">
                        <table width="100%">
                            <col class="th" />
                            <col width="400" />
                            <?php foreach ($_value['imit'] as $__key => $__value) : ?>
                                <tr>
                                    <th>
                                        <?php echo $__value['title']; ?>
                                        <a href="<?php echo "/?g=Admin&m=User&a=addNode&pid={$__value['id']}"; ?>" >[添加下级节点]</a>
                                        <a href="<?php echo "/?g=Admin&m=User&a=editNode&id={$__value['id']}"; ?>">[编辑]</a>
                                        <a href="<?php echo "/?g=Admin&m=User&a=deleteNode&id={$__value['id']}"; ?>">[删除]</a>
                                    </th>
                                    <td>
                                        <ul class="three_list cc">
                                            <?php foreach ($__value['imit'] as $___key => $___value) : ?>
                                                <li>
                                                    <label>
                                                        <span>
                                                            <?php echo $___value['title']; ?>
                                                            <a href="<?php echo "/?g=Admin&m=User&a=editNode&id={$___value['id']}"; ?>">[编辑]</a>
                                                            <a href="<?php echo "/?g=Admin&m=User&a=deleteNode&id={$___value['id']}"; ?>" >[删除]</a>
                                                        </span>
                                                    </label>
                                                </li>
                                            <?php endforeach; ?>
                                        </ul>
                                    </td>

                                </tr>
                            <?php endforeach; ?>

                        </table>
                    </div>
                <?php endforeach; ?>
            <?php endforeach; ?>

        </div>

    </div>


</div>
<?php $this->footer(); ?>